﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TLWinReplace
{
    public partial class InputDataForm : Form
    {
        private string m_sSecNum;
        private string m_sSecSize;
        private string m_sBlankState;

        public InputDataForm()
        {
            InitializeComponent();

            m_sSecNum = "32768";
            m_sSecSize = "512K";
            m_sBlankState = "00";
            textBox1.Text = m_sSecNum;
            textBox2.Text = m_sSecSize;
            textBox3.Text = m_sBlankState;
        }

        public string BlankState
        {
            get { return m_sBlankState; }
            set { m_sBlankState = value; }
        }

        public string SecNum
        {
            get { return m_sSecNum; }
            set { m_sSecNum = value; }
        }

        public string SecSize
        {
            get { return m_sSecSize; }
            set { m_sSecSize = value; }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            m_sSecNum = textBox1.Text;
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            m_sSecSize = textBox2.Text;
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {
            m_sBlankState = textBox3.Text;
        }
    }
}
